﻿// -------------------------------------------------------------------------
//    @FileName         :    NFNoviceGuidePart.cpp
//    @Author           :    gaoyi
//    @Date             :    2025/1/7
//    @Email            :    445267987@qq.com
//    @Module           :    NFNoviceGuidePart
//
// -------------------------------------------------------------------------

#include "NFNoviceGuidePart.h"

#include "proto_db.pb.h"

NFNoviceGuidePart::NFNoviceGuidePart()
{
    if (EN_OBJ_MODE_INIT == NFShmMgr::Instance()->GetCreateMode())
    {
        CreateInit();
    }
    else
    {
        ResumeInit();
    }
}

NFNoviceGuidePart::~NFNoviceGuidePart()
{
}

int NFNoviceGuidePart::CreateInit()
{
    return 0;
}
    
int NFNoviceGuidePart::ResumeInit()
{
    return 0;
}

int NFNoviceGuidePart::LoadFromDB(const proto_ff::tbRoleDetail* pDBData)
{
    m_stData.FromPb(pDBData->role_play_data().novice_guide());
    return 0;
}

int NFNoviceGuidePart::InitConfig(proto_ff::tbRoleDetail* pDbData, const RoleOne& stRoleOne)
{
    pDbData->mutable_role_play_data()->mutable_novice_guide();
    return 0;
}

int NFNoviceGuidePart::SaveDB(proto_ff::tbRoleDetail* pDBData)
{
    m_stData.ToPb(pDBData->mutable_role_play_data()->mutable_novice_guide());
    return 0;
}

int NFNoviceGuidePart::MakePlayerDataCS(proto_ff::Proto_CSGetRoleRsp* pCSGetRoleRsp)
{
    return 0;
}

int NFNoviceGuidePart::MakeCityPlayerData(proto_ff::CityRoleInfo* pGCCityRoleInfo)
{
    return 0;
}
